package br.com.chat.rmi;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;

import br.com.chat.Message;
import br.com.chat.User;

public interface ChatManager extends Remote {

    public void login(User user) throws RemoteException;

    public void logout(User user) throws RemoteException;
    
    public boolean isLoggedIn(User user) throws RemoteException;
    
    public List<User> allLogged() throws RemoteException;

    public void publish(Message message) throws RemoteException;

    public List<Message> load(User user) throws RemoteException;

}
